package com.gitee.hifong45.annotations;

import org.aopalliance.aop.Advice;
import org.springframework.aop.Pointcut;
import org.springframework.aop.support.AbstractPointcutAdvisor;
import org.springframework.aop.support.annotation.AnnotationMatchingPointcut;

public class FLogPointcutAdvisor extends AbstractPointcutAdvisor {

    public Pointcut getPointcut() {
        return AnnotationMatchingPointcut.forMethodAnnotation(FLog.class);
    }

    public Advice getAdvice() {
        return new FLogPointcutAdvice();
    }
}
